//
//  WebRUL.h
//  hcpro
//
//  Created by hc on 2016/9/27.
//  Copyright © 2016年 hucai.com. All rights reserved.
//

#ifndef WebRUL_h
#define WebRUL_h

#define API_HOST                        [[[NSBundle mainBundle] infoDictionary] objectForKey:@"APIHost"]

#define API_UPLOAD_HOST                 [[[NSBundle mainBundle] infoDictionary] objectForKey:@"APIUploadHost"]

#define API_POST_WORKITEM               @"index.php/openapi/b2c_works/save" //提交作品

#define API_WORK_GETSTATUS              @"index.php/openapi/b2c_works/get_status"    //查询作品数据状态

#define API_GET_TEMP_USER               @"index.php/openapi/b2c_member/get_temp_work_id" //获取临时账号id

#define API_LOGIN                       @"index.php/openapi/b2c_member/post_login"//[POST:form-data]登录接口
#define API_LOGIN_UNION                 @"index.php/openapi/b2c_member/openid_login"//[POST:form-data]第三方登录接口

#define API_SIGN_SEND_SMS_CODE          @"index.php/openapi/b2c_member/send_signup_vcode_sms"//[POST:form-data]注册发送验证码
#define API_SIGN                        @"index.php/openapi/b2c_member/create"//[POST:form-data]注册

#define API_SEND_FORGOT_VCODE_SMS       @"index.php/openapi/b2c_member/send_forgot_vcode_sms"//[POST:form-data]重置密码发送验证码

#define API_SEND_FORGOT_VCODE_EMAIL     @"index.php/openapi/b2c_member_send_vcode_email"//[POST:form-data]找回密码发送邮箱验证码

#define API_RESETPASSWORD               @"index.php/openapi/b2c_member/resetpassword"//[POST:form-data]重置密码

#define API_HOME_GOODSLIST          @"index.php/openapi/b2c_goods/get_first_page"//[POST:form-data]获取首页商品列表

#define API_HOMEPAGE_GOODSLIST   @"index.php/openapi/b2c_goods/get_second_page"//[POST:form-data]商品列表

#define API_HOMEPAGE_UPDATE_GOODSLIST   @"index.php/openapi/b2c_goods/get_modify_list"//[POST:form-data]查询商品更新列表

#define API_BGITEM                      @"index.php/openapi/b2c_template/get_soup"  //[POST:form-data]获取背景图

#define API_GOODS_TEMPLATE_UPDATE       @"index.php/openapi/b2c_template/get_modify_list"//[POST:form-data]查询多个剧本更新信息列表


#define API_PHOTO_UPLOAD                [NSString stringWithFormat:@"%@save",API_UPLOAD_HOST] //[POST:form-data]作品单张图片上传

#define API_TEMPLATE_SOUP               @"index.php/openapi/b2c_template/get_soup"//[POST:form-data]查询心灵鸡汤, 商品作品背景信息



#define API_ORDERS_COUPON               @"index.php/openapi/b2c_orders/get_member_coupon"  //POST 查询订单优惠券

#define API_ORDERS_CHECK_COUPON         @"index.php/openapi/b2c_orders/verify_coupons"  //POST 输入代金券查询使用(验证优惠券/优惠码是否有效)

#define API_Version_CHECK               @"index.php/openapi/b2c_services/getversion"        //检查版本更新状态

#define API_Alipay_Callback             @"index.php/openapi/ectools_payment/parse/ectools/ectools_payment_plugin_malipay_server/callback/"              //支付宝回调地址

#define API_Weixinpay_Send              @"index.php/openapi/b2c_orders/sendWechatPay"       //微信支付参数请求
#define API_DEPOSIT_PAY                 @"index.php/openapi/b2c_orders/deposit_pay"     //余额支付
#define API_NoticeCheckWeixinPayStatus  @"index.php/openapi/b2c_orders/wx_searchOrder"   //新增（重复支付）接口：确认微信支付是否成功

#define API_ORDERS_Get      @"index.php/openapi/b2c_orders/get_list" //获取账户全部订单列表信息
#define API_ORDERS_Detail   @"index.php/openapi/b2c_orders/detail"   //获取详细订单信息
#define API_ORDERS_Create   @"index.php/openapi/b2c_orders/create"   //提交新订单数据
#define API_ORDERS_Dlytype  @"index.php/openapi/b2c_orders/get_dlytype"    //获取配送方式
#define API_ORDERS_Cost     @"index.php/openapi/b2c_orders/check_cost"     //获取订单价钱信息
#define API_ORDERS_Balance  @"index.php/openapi/b2c_orders/member_balance" //查询账户余额

#define API_ORDERS_Cancel   @"index.php/openapi/b2c_orders/cancel"         //订单取消
#define API_GET_ORDER_SATUS @"index.php/openapi/b2c_orders/get_orders_status" //获取账户所有订单数据缺失状态
#define API_NOTICE_CHECKWORKSTATUS @"index.php/openapi/b2c_works/work_status"  //新增（检查作品是否上传成功）接口：确认作品是否上传成功


#define API_Address_Get                 @"index.php/openapi/b2c_address/get_list"  //获取账户地址信息列表/
#define API_Address_Save                @"index.php/openapi/b2c_address/save"    //添加新地址/ 更新单项地址簿信息
#define API_Address_Delete              @"index.php/openapi/b2c_address/delete"  //删除地址本(支持批量)
#define API_Address_Default             @"index.php/openapi/b2c_address/set_default"    //设置默认地址信息


#define API_GET_CALENDAR                @"index.php/openapi/b2c_date/getTimeToCalendar"     //POST 获取日历数据

#define API_GET_AD_INFO                 @"index.php/openapi/b2c_services/getAdInfo"         //POST 获取广告信息

#define API_LOCATION_PARSE              @"index.php/openapi/b2c_address/getAreaByLocation"//POST 通过经纬度获取地区名称及城市

#define API_SHAREWORK          @"index.php/openapi/b2c_services/shareWork"       //获取已生成订单的作品分享
#define API_SHARE_APP          @"index.php/openapi/b2c_services/shareApp"        //获取应用分享内容

#define API_WEATHER_BY_AREA_TIME        @"index.php/openapi/b2c_date/getWeatherByAreaAndTime"   //POST 通过城市和时间戳获取天气

#define API_B2C_ORDERS_TB_PAY  @"index.php/openapi/b2c_orders/tb_pay/" //淘宝支付

#define API_APPMessage          @"index.php/openapi/b2c_orders/app_message"             // 获取最新通知
#define API_APPMessageList      @"index.php/openapi/b2c_orders/app_message_list"        // 获取消息中心列表
#define API_APPMessageRead      @"index.php/openapi/b2c_orders/app_message_read"        // 设置消息已读
#define API_APPMessageCheckRead @"index.php/openapi/b2c_orders/app_message_check_read"  // 检查是否有未读消息
#define API_APPMessageDel       @"index.php/openapi/b2c_orders/app_message_del"         // 删除消息

#define API_OnlineService       @"/index.php/appshow-appchat.html?mid="

/** 查询账户余额(取现) */
#define API_Balance_GetBalanceInfo  @"/index.php/openapi/b2c_member/getwithdramals"
/** 提交提现请求 */
#define API_Balance_DrawMoney  @"/index.php/openapi/b2c_member/withdramals"

/************************菜单优惠券*********************/
//优惠券列表
#define API_APPMenuCoupon_CouponList @"index.php/openapi/b2c_coupons/get_coupon_list"
//添加优惠券
#define API_APPMenuCoupon_AddCoupon @"index.php/openapi/b2c_coupons/add_coupon"

/************************问卷调查*********************/
#define API_APPQuestionnaire @"index.php/openapi/b2c_orders/questionnaire"

/************************收款单（用于支付宝）*********************/
//二次获取订单id
#define API_APPAlipay_paymentid @"/index.php/openapi/b2c_orders/do_payment"
/************************检查更新*********************/
//检查更新接口
#define API_APPChectToUpdate @"/index.php/openapi/b2c_services/getversion"

/************************极光分组*********************/
//极光分组
#define API_JPushGetTag @"/index.php/openapi/b2c_member/get_member_tag"

#endif /* WebRUL_h */
